-- GENERATED SPELL FOR [Greater Felfire Diemetradon] --


function spell0_21462(pUnit, Event) --@Fel Fireball,n/a--
pUnit:FullCastSpellOnTarget(37945,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21462', 3000, 1)
end

function spell1_21462(pUnit, Event) --@Flaming Wound,n/a--
pUnit:FullCastSpellOnTarget(37941,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21462', 15000, 1)
end

function Sorts_21462(pUnit, Event)
local choix_sorts_21462 = math.random(0, 1)
if choix_sorts_21462 == 0 then
pUnit:RegisterEvent('spell0_21462', 1, 1)
end
if choix_sorts_21462 == 1 then
pUnit:RegisterEvent('spell1_21462', 1, 1)
end
end

function mob21462_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21462', math.random(1500, 3000), 1)
end

function mob21462_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21462_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21462_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21462, 1, 'mob21462_Action')
RegisterUnitEvent(21462, 2, 'mob21462_Leave')
RegisterUnitEvent(21462, 3, 'mob21462_Kill')
RegisterUnitEvent(21462, 4, 'mob21462_Die')
